<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0">
    <title>热门新番</title>
    <link rel="stylesheet/less" href="./css/shimban.less">
    <link rel="stylesheet/less" href="./css/reset.less">
    <link rel="stylesheet/less" href="./css/common.less">
</head>

<body>
    <header>
        <div class="back"><a href="./index.html">&lt;</a></div>
        <div class="title">热门新番</div>
        <div></div>
    </header>
    <div class="title-content">
        <nav id="nav-box">
            <div class="item navactive">2016年新番</div>
            <div class="item">2015年新番</div>
            <div class="item">2014年新番</div>
            <div class="item">2013年新番</div>
        </nav>
        <div class="content" id="content">
            <div class="item active">
                <nav id="nav-box2">
                    <div class="classify navactive2">七月新番</div>
                    <div class="classify">四月新番</div>
                    <div class="classify">一月新番</div>
                </nav>
                <div class="content2" id="content2">
                    <div class="item2 active2">
                        <div><img src="./images/relife.jpg" alt=""><span>ReLIFE/重返17岁</span></div>
                        <div><img src="./images/sjjz.jpeg" alt=""><span>食戟之战：贰之皿/食戟之灵 第二季</span></div>
                        <div><img src="./images/zewg.jpg" alt=""><span>刀剑神域</span></div>
                        <div><img src="./images/xinfan04.jpg" alt=""><span>从零开始的异世界生活</span></div>
                    </div>
                    <div class="item2">
                        <div><img src="./images/jjdjr.jpg" alt=""><span>进击的巨人</span></div>
                        <div><img src="./images/zewg.jpg" alt=""><span>罪恶王冠</span></div>
                        <div><img src="./images/lnbfb.jpg" alt=""><span>灵能百分百</span></div>
                        <div><img src="./images/rijishaonv.jpg" alt=""><span>日记少女</span></div>
                    </div>
                    <div class="item2">
                        <div><img src="./images/heianzhihun.jpg" alt=""><span>黑暗之魂３</span></div>
                        <div><img src="./images/jdzsgd.jpg" alt=""><span>机动战士敢达</span></div>
                        <div><img src="./images/heianzhihun.jpg" alt=""><span>剧场版 OVA</span></div>
                        <div><img src="./images/hzw.jpg" alt=""><span>海贼王</span></div>
                    </div>
                </div>
            </div>
            <div class="item">
                暂无内容
            </div>
            <div class="item">
                暂无内容
            </div>
            <div class="item">
                暂无内容
            </div>
        </div>
    </div>
</body>

</html>
<script src="./js/less.js"></script>
<script src="./js/common.js"></script>
<script src="./js/jquery-3.6.0.min.js"></script>
<script>
    $('#nav-box .item').click(function () {

        // 获取索引
        var index = $(this).index()

        $(this).addClass('navactive').siblings().removeClass('navactive')

        // eq => 匹配索引值 链式操作 => 面向对象编程
        $('#content .item').eq(index).addClass('active').siblings().removeClass('active')

    })
    $('#nav-box2 .classify').click(function () {

        // 获取索引
        var index = $(this).index()

        $(this).addClass('navactive2').siblings().removeClass('navactive2')

        // eq => 匹配索引值 链式操作 => 面向对象编程
        $('#content2 .item2').eq(index).addClass('active2').siblings().removeClass('active2')

    })
</script>